class CreateAnswers < ActiveRecord::Migration
  def self.up
    create_table :answers do |t|
      t.column :question_id, :integer, :null => false      
      t.column :desc,  :text, :null => false
      t.column :helpful, :integer
      t.column :unhelpful, :integer
      t.column :author, :string
    end
  end

  def self.down
    drop_table :answers
  end
end
